package com.springcloud.learn;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Edison_lv  lvchangrong
 * @create 2017/11/28  10:52
 */

@RefreshScope
@RestController
public class TestController {


    @Value("${from}")
    private String from;

    @RequestMapping("/from")
    public String from(){
        return from;
    }

}
